package com.os.task;

import com.os.model.MetaDataInfo;
import com.os.result.Resp;
import com.os.feign.MetaDataService;

import java.util.concurrent.Callable;

/**
 * @author 风亦未止
 * @date 2023/5/4 11:30
 */
public class PutMeta implements Callable<Resp> {
    private MetaDataService metaDataService;

    private MetaDataInfo metaDataInfo;

    public PutMeta(MetaDataService metaDataService, MetaDataInfo metaDataInfo) {
        this.metaDataService = metaDataService;
        this.metaDataInfo = metaDataInfo;
    }

    @Override
    public Resp call() {
        return  metaDataService.put(metaDataInfo);
    }
}
